#include "historymanager.h"

HistoryManager HistoryManager::instance;

HistoryManager::HistoryManager()
{

}

void HistoryManager::addHistory(UrlInfo urlInfo)
{
    // 未开启无痕模式则保存
    if(!ConfigManager::getInstance().getTraceLess()){
        histories.push_back(urlInfo);
    }
}

void HistoryManager::clearHistory()
{
    histories.clear();
}
